<%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="Weblog.Default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%# blog.Title %>
			-
			<%# blog.SubTitle %>
		</title>
		<LINK href="Weblog.css" rel="stylesheet">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<h1><%# blog.Title %></h1>
			<h2><%# blog.SubTitle %></h2>
			<table width="100%">
				<tr>
					<td vAlign="top" width="190">
					
						<asp:Calendar id="Calendar1" runat="server" ToolTip="Select a date" CellPadding="4" BorderColor="#999999"
							Font-Names="Verdana" Font-Size="8pt" Height="138px" ForeColor="Black" DayNameFormat="FirstLetter"
							BackColor="White" Width="160px">
							<TodayDayStyle ForeColor="Black" BackColor="#CCCCCC"></TodayDayStyle>
							<SelectorStyle BackColor="#CCCCCC"></SelectorStyle>
							<NextPrevStyle VerticalAlign="Bottom"></NextPrevStyle>
							<DayHeaderStyle Font-Size="7pt" Font-Bold="True" BackColor="#CCCCCC"></DayHeaderStyle>
							<SelectedDayStyle Font-Bold="True" ForeColor="White" BackColor="#666666"></SelectedDayStyle>
							<TitleStyle Font-Bold="True" BorderColor="Black" BackColor="#999999"></TitleStyle>
							<WeekendDayStyle BackColor="#FFFFCC"></WeekendDayStyle>
							<OtherMonthDayStyle ForeColor="Gray"></OtherMonthDayStyle>
						</asp:Calendar><br>
						
						<asp:Datalist id="DataListCategories" runat="server">
							<ItemTemplate>
								<div class="sidebarleft-block" style="width:170px">
									<b>
										<%# DataBinder.Eval(Container.DataItem, "Name") %>
									</b>
									<asp:DataList id="DataListLinks" runat="server" DataSource='<%# DataBinder.Eval(Container.DataItem, "Links") %>' >
										<ItemTemplate>
											<a href='<%# DataBinder.Eval(Container.DataItem, "Url") %>'>
												<%# DataBinder.Eval(Container.DataItem, "Name") %>
											</a>
											<br>
										</ItemTemplate>
									</asp:DataList>
								</div>
							</ItemTemplate>
						</asp:Datalist>
						
					</td>
					<td vAlign="top">
					
						<asp:Datalist id="DataListPosts" runat="server" Width="100%">
							<ItemTemplate>
								<h2><%# DataBinder.Eval(Container.DataItem, "Title") %></h2>
								<%# DataBinder.Eval(Container.DataItem, "Content") %>
								<br>
								<i>Published on
									<%# DataBinder.Eval(Container.DataItem, "Published") %>
								</i>
								<hr>
							</ItemTemplate>
						</asp:Datalist>
						
						<asp:Label id="LabelNoArticles" runat="server">There is no article available</asp:Label>
						
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
